﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Jmesa 表格演示</title>
<c:import url="/common/meta.html"/>
<link href="${ctx}/css/default.css" type="text/css" rel="stylesheet"/>
<link href="${ctx}/css/jmesa.css" type="text/css" rel="stylesheet"/>
<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
<script src="${ctx}/js/jquery.jmesa.js" type="text/javascript"></script>
<script src="${ctx}/js/jmesa.js" type="text/javascript"></script>
</head>

<body>
<div id="menu">
	<h3>
	<a href="${ctx}/security/user.action">帐号列表</a>
	<a href="${ctx}/security/role.action">角色列表</a> 
	<a href="user!jmesa.action">Jmesa示例</a>
	<a href="${ctx}/j_spring_security_logout">退出登录</a>
	</h3> 
</div>

<div id="message"><s:actionmessage theme="mytheme"/></div>
<form id="mainForm" action="user!jmesa.action" method="post">
<c:import url="/common/jmesa-hidden.jsp"/>
<script type="text/javascript">
	function modify(userId){
		location.href = '${ctx}/security/user!input.action?id=' + userId;
	}
	
	function remove(userId){
		alert('暂时置空该函数');
	}

	function onInvokeAction(id) {
	    setExportToLimit(id, '');
	    createHiddenInputFieldsForLimitAndSubmit(id);
	}
	function onInvokeExportAction(id) {
	    var parameterString = createParameterStringForLimit(id);
	    location.href = '${ctx}/security/user!jmesa.action?' + parameterString;
	}
</script>
<div id="jmesa">
	${jmesaHtml}
</div>
</form>
</body>
</html>
